package models

import (
	"time"
)

const TBNTaskLog = "task_log"

type TblTaskLog struct {
	Id        int64      `orm:"" json:"id" form:"id"`
	CreateAt  *time.Time `orm:"" json:"createAt" form:"createAt"`
	TaskId    int64      `orm:"int" json:"taskId" form:"taskId"`
	Runner    string     `orm:"varchar(100);comment:执行实例，IP:PORT" json:"runner" form:"runner"`
	StartTime *time.Time `orm:"datetime" json:"startTime" form:"startTime"`
	Us        int        `orm:"int;comment:执行时间(微秒)" json:"us" form:"us"`
	Status    int        `orm:"tinyint;comment:-1-失败 2-成功" json:"status" form:"status"`
	Msg       string     `orm:"text" json:"msg" form:"msg"`
}

func (m *TblTaskLog) TableName() string {
	return TBNTaskLog
}
